package com.steven.concurrency.controller;

import com.steven.concurrency.example.threadlocal.RequestHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * jmeter ,postman, apache db ,
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "test";
    }

    @GetMapping("/threadLocal")
    public Long threadLocal(){
        return RequestHolder.get();
    }
}
